package h.a.a;

import h.a.a.i.d;
import h.a.a.j.a;
import java.util.HashMap;
import java.util.Map;

/* compiled from: AbstractDaoMaster */
public abstract class b {
    public final Map<Class<? extends a<?, ?>>, a> daoConfigMap = new HashMap();
    public final h.a.a.h.a db;
    public final int schemaVersion;

    public b(h.a.a.h.a aVar, int i) {
        this.db = aVar;
        this.schemaVersion = i;
    }

    public h.a.a.h.a getDatabase() {
        return this.db;
    }

    public int getSchemaVersion() {
        return this.schemaVersion;
    }

    public abstract c newSession();

    public abstract c newSession(d dVar);

    public void registerDaoClass(Class<? extends a<?, ?>> cls) {
        this.daoConfigMap.put(cls, new a(this.db, cls));
    }
}
